package vip.xiaonuo;

import cn.hutool.log.Log;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * SpringBoot方式启动类
 *
 * @author yubaoshan
 * @date 2017/5/21 12:06
 */

@SpringBootApplication
public class SnowyApplication {

    private static final Log log = Log.get();

    public static void main(String[] args) {
        SpringApplication.run(SnowyApplication.class, args);

//        ConfigurableApplicationContext context =
//                new SpringApplicationBuilder(SnowyApplication.class)
//                        .run(args);
//        log.info(">>> >>redis:"+context.getEnvironment().getProperty("spring.redis.host"));
//        log.info(">>>  teacher-account:"+context.getEnvironment().getProperty("nju.teacher-account"));
//        log.info(">>> " + SnowyApplication.class.getSimpleName() + " is success!");
    }

}
